/*
 * File Name : exit.cpp
 * Auther : dream.liuguobiao
 * Create Date : 2010-5-16
 * Last Edit : 2010-5-16
 */

#include <stack>

#include "user.h"
#include "my_exit.h"

my_exit::my_exit( std::string *new_parameters)
:command(new_parameters)
{
}

int my_exit::run_command(){
  std::stack<user*> *login_users = get_shell_environment()->get_login_users();
  login_users->pop();
  if( 0 == login_users->size() )return 1;
  return 0;
}
